<style type="text/css">
    .panel-head{
        background: #FDE3E9;
        color: #000;
    }
    .panel {
        border-radius: 4px;
    }
    .tittle_2 .panel-head{
        padding:0;
        border: none;
    }
    .wshi_pai{
        width: 2em;
    }
    .wshi_pai2{
        width: 3.4em;
    }
    .wshi_pai,.wshi_pai2{
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
    }
    .w50pre{
        vertical-align:text-top !important;
    }
    .w60{
        width: 70px;
    }
</style>
<div class="admin">
    <div class="tab panel dux-box admin-panel">
        <div class="panel-head"><strong>会员详情</strong></div>
        <div class="padding border-bottom">
            <a href="{:U('index')}" class="button button-small border-green">返回列表</a>
        </div>
        <table class="table tb-type2 nobdb">
            <thead>
                <tr class="thead">
                    <th class="align-center">编号</th>
                    <th class="align-center">购买单量</th>
                    <th class="align-center">消费金额</th>
                    <th class="align-center">会员</th>
                    <th class="align-center">性别</th>
                    <th class="align-center">手机号</th>
                    <th class="align-center">注册来源</th>
                    <th class="align-center">登陆次数</th>
                    <th class="align-center">上次登陆时间</th>
                    <th class="align-center">注册时间</th>
                </tr>
            </thead>
            <tbody>
                <tr class="hover">
                    <td class="align-center">{$user['user_id']}</td>
                    <td class="align-center">{$userOrder}单</td>
                    <td class="align-center">{$userMoney|price}元</td>
                    <td class="align-center">{$user['user_name']}</td>
                    <td class="align-center">
                        <switch name="user.user_sex">
            <case value="1">男</case>
            <case value="2">女</case>
            <default />保密
            </switch>
            </td>
            <td class="align-center">{$user['user_mobile']}</td>
            <td class="nowrap align-center">
                <switch name="user.user_from">
            <case value="1">手机</case>
            <case value="2">微信</case>
            <default />PC
            </switch>
            </td>
            <td class="nowrap align-center">{$user['user_login_num']}</td>
            <td class="nowrap align-center">{$user['user_login_time']|date='Y-m-d H:i:s',###}</td>
            <td class="align-center">{$user['user_time']|date='Y-m-d H:i:s',###}</td>
            </tr>
            </tbody>
        </table>
    </div>
    <div class="tab panel dux-box admin-panel" style="margin-top: 10px;">
        <div class="panel-head" style="text-align: center;"><strong>会员订单详情</strong></div>
        <foreach item='v' name='order'>
            <div style="width:98%;margin: 0 auto;margin-top: 25px;border: 1px solid #eee;">

                <table class="table tb-type2 nobdb">
                    <thead>
                        <tr class="thead">
                            <th>订单号</th>
                            <th>支付单号</th>
                            <th class="align-center">下单时间</th>
                            <th class="align-center">支付时间</th>
                            <th>店铺</th>
                            <th class="align-center">买家</th>
                            <th class="align-center">订单总额</th>
                            <th class="align-center">支付方式</th>
                            <th class="align-center">订单状态</th>

                        </tr>
                    </thead>
                    <tbody>
                        <tr class="hover" style="background: rgb(255, 246, 246);">
                            <td class="oGoods" id="697"><a href="{:U('Order/details',array('order_id'=>$v['order_id']))}">{$v['order_sn']}</a></td>
                            <td>{$v['pay_sn']}</td>
                            <td class="nowrap align-center">{$v['add_time']|date='Y-m-d H:i:s',###}</td>
                            <td class="nowrap align-center">{$v['payment_time']|date='Y-m-d H:i:s',###}</td>
                            <td>{$v['store_name']}</td>
                            <td class="align-center">{$v['user_name']}</td>
                            <td class="align-center">{$v['goods_amount']}</td>
                            <td class="align-center">{$v['payment_code']}</td>
                            <td class="align-center">
                                <switch name="v.order_state">
                    <case value="0">已取消</case>
                    <case value="10">未付款</case>
                    <case value="20">已付款</case>
                    <case value="30">已发货</case>
                    <case value="40">已完成</case>
                    <default />default
                    </switch>
                    </td>
                    </tr>







                    <table class="table tb-type2 goods ">
                        <tbody>
                            <!--<tr>
                                <th></th>
                                <th>订单商品信息</th>
                                <th class="align-center">单价</th>
                                <th class="align-center">商品总价</th>
                                <th class="align-center">数量</th>
                                <th class="align-center">佣金比例</th>
                                <th class="align-center">收取佣金</th>
                            </tr>-->
                        <foreach item='m' name="v['OrderGoods']">
                            <tr style="background: rgb(255, 246, 246);">
                                <td class="w60 picture"><div class="size-56x56"><span class="thumb size-56x56"><i></i><a href="{:HOME_URL}/Goods/{$m['goods_id']}" target="_blank"><img alt="" src="{$m['goods_image']}!100x100" width="70px"> </a></span></div></td>
                                <td class="w50pre" style="border-left: 1px solid #ddd;"><p><a href="{:HOME_URL}/Goods/{$m['goods_id']}" target="_blank">{$m['goods_title']}</a></p><p>规格：{$m['goods_attri_info']}</p></td>
                                <td class="wshi_pai">单价</td><td class="w96 align-center"><span class="red_common">￥{$m['goods_price']}</span></td>
                                <td class="wshi_pai2">商品总价</td><td class="w96 align-center"><span class="red_common">￥{$m['goods_pay_price']}</span></td>
                                <td class="wshi_pai">数量</td><td class="w96 align-center">{$m['goods_num']}</td>
                                <td class="wshi_pai2">佣金比例</td><td class="w96 align-center">0%</td>
                                <td class="wshi_pai2">收取佣金</td><td class="w96 align-center">0.00</td>
                            </tr>
                        </foreach>
                        </tbody>
                    </table>
                    </tbody>
                </table>
            </div>
        </foreach>
        <table class="table" style="margin-top: 10px;">
            <tfoot>
                <tr class="tfoot">
                    <td colspan="15">
                        <div class="pages clearfix" id="fen_ye">
                            {$pages}
                        </div>
                    </td>
                </tr>
            </tfoot>
        </table>
    </div>
    <script type="text/javascript">
        $("#fen_ye")
    </script>
    <div class="tab panel dux-box admin-panel" style="margin-top: 10px;text-align: center;">
        <table class="table tb-type2 nobdb">
            <tr class="thead tittle_2">
                <th style="text-align: center;background: #FDE3E9;"><div class="panel-head"><strong>收藏的店铺</strong></div></th>
                <th style="text-align: center;background: #FDE3E9;"><div class="panel-head"><strong>店铺名称</strong></div></th>
            </tr>
            <tr>
                <td>
                    <table class="table tb-type2 nobdb" style="border: solid 1px #ddd;">
                        <thead>
                            <tr class="thead">
                                <th  style="text-align: center;">收藏的店铺</th>
                                <th style="text-align: center;">店铺名称</th>
                            </tr>
                        </thead>
                        <tbody>
                        <notempty name="faviSupper">
                            <foreach item='v' name='faviSupper'>
                                <tr class="hover">
                                    <td><img src="{$v['img']}!100x100" width="50" heigh="50" /></td>
                                    <td>{$v['title']}</td>
                                </tr>
                            </foreach>
                            <else />
                            <tr class="hover">
                                <td colspan="2">暂无收藏</td>
                            </tr>
                        </notempty>
                        </tbody>
                    </table>
                </td>
                <td>
                    <table class="table tb-type2 nobdb" style="border: solid 1px #ddd;">
                        <thead>
                            <tr class="thead">
                                <th style="text-align: center;">收藏的商品</th>
                                <th style="text-align: center;">商品名称</th>
                            </tr>
                        </thead>
                        <tbody>
                        <notempty name="faviGoods">
                            <foreach item='v' name='faviGoods'>
                                <tr class="hover">
                                    <td><img src="{$v['img']}!100x100" width="50" heigh="50" /></td>
                                    <td>{$v['title']}</td>
                                </tr>
                            </foreach>
                            <else />
                            <tr class="hover">
                                <td colspan="2">暂无收藏</td>
                            </tr>
                        </notempty>
                        </tbody>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <!--    <div class="tab panel dux-box admin-panel" style="margin-top: 10px;text-align: center;">
            <div class="panel-head"><strong>会员：我的足记</strong></div>
            <table class="table tb-type2 nobdb">
                <thead>
                    <tr class="thead">
                        <th style="text-align: center;">商品图片</th>
                        <th style="text-align: center;">商品名称</th>
                        <th style="text-align: center;">商品价格</th>
                    </tr>
                </thead>
                <tbody>
                <notempty name="browse">
                    <foreach item='v' name='browse'>
                    <tr class="hover">
                        <td>logo</td>
                        <td>店铺名称</td>
                        <td>产品图</td>
                    </tr>
                    </foreach>
                    <else />
                    <tr class="hover">
                        <td colspan ="3">暂无足迹</td>
                    </tr>
                </notempty>
                </tbody>
            </table>
        </div>-->
    <div class="tab panel dux-box admin-panel" style="margin-top: 10px;text-align: center;">
        <div class="panel-head"><strong>会员：收货地址</strong></div>
        <table class="table tb-type2 nobdb">
            <thead>
                <tr class="thead">
                    <th style="text-align: center;">收货人姓名</th>
                    <th style="text-align: center;">收货人电话</th>
                    <th style="text-align: center;">收货人详细地址</th>
                </tr>
            </thead>
            <tbody>
            <notempty name="address">
                <foreach item='v' name='address'>
                    <tr class="hover">
                        <td>{$v['true_name']}</td>
                        <td>{$v['mob_phone']}</td>
                        <td>{$v['area_info']}{$v['address']}</td>
                    </tr>
                </foreach>
                <else />
                <tr class="hover">
                    <td colspan ="3">暂无邮寄地址</td>
                </tr>
            </notempty>
            </tbody>
        </table>
    </div>
</div>